
#include "PollServer.hpp"
#include <iostream>
void Usage(std::string proc)
{
    std::cerr << "Usage : " << proc << " serverport" << std::endl;
}

// ./tcp_client serverport
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(0);
    }
    uint16_t serverport = std::stoi(argv[1]);
    EnableConsoleLogStrategy();
    std::unique_ptr<PollServer> pollptr = std::make_unique<PollServer>(serverport);
    pollptr->Run();
    return 0;
}